# -*- coding:utf-8 -*-
"""Created By Corvo"""

from modConfig import *
from ..mdk.common.system.base import GameAttr


class ElementType(object):
    gold = "gold"
    wood = "wood"
    water = "water"
    fire = "fire"
    dirt = "dirt"

    AllElement = (gold, wood, water, fire, dirt)

    # 克制对应
    ConquerMap = {
        gold: wood,
        wood: dirt,
        dirt: water,
        water: fire,
        fire: gold,
    }

    ChMap = {
        gold: "金",
        wood: "木",
        water: "水",
        fire: "火",
        dirt: "土",
    }

    # 神级灵兽
    ModGodBeast = ["beast:%s_god" % element for element in AllElement]


class ModFormula(object):
    """模组数值"""


class ModMergeData(object):
    """模组合并数据"""
    # 战爪Hud
    # 组合灵兽
    CombineEntity = [
        # version 15
        ModEntity.mantis_chomper,
        ModEntity.bear_crocodile,
        ModEntity.bear_bull,
        ModEntity.turtle_frog,
        ModEntity.frog_bee,
        ModEntity.frog_manis,
        ModEntity.sloth_manis,
        ModEntity.manis_velociraptor,
        ModEntity.snake_chomper,
        ModEntity.inkfish_mantis,
    ]
    # 混世灵兽
    ChaosCombine = [
        # version 6.0

    ]
    # 明灵灵兽
    MachineCombine = [

    ]
    # 三混合灵兽
    Combine3Entity = [
        # version 6.0

    ]
    # 精灵生物
    CaptureEntity = [
        # version 6.0
        ModEntity.gold_frog,
        ModEntity.water_bee,
        ModEntity.wood_mouse,
        ModEntity.earth_chomper,
        ModEntity.gold_chomper,
        ModEntity.fire_sloth,
        ModEntity.earth_bull,

    ]
    # 闪电揪揪生物
    ThunderRaccoonEntity = []
    # 五行精华
    ElementEssential = []
    # 混世精灵
    ChaosSprite = [
        # version 6.0

    ]
    # 明灵精灵
    MachineSprite = [
        # version 9.0

    ]
    # 图鉴生物
    BookShowEntity = CombineEntity + CaptureEntity
    # 混世生物
    ChaosEntity = ChaosCombine + ChaosSprite
    # 明灵生物
    MachineEntity = MachineCombine + MachineSprite
    # 图鉴数据
    BookEntityData = [
        {
            "out": ModEntity.mantis_chomper,
            "in1": "beast:fire_mantis",
            "in2": "beast:earth_chomper",
            "lore": "§d灵兽:§f巨斧啃灵兽\n属性：火、土\n融合条件：火巨斧虫(主)+土啃灵藤(副)\n生命值：280攻击力：8",
        },
        {
            "out": ModEntity.bear_crocodile,
            "in1": "beast:water_bear_chaos",
            "in2": "beast:fire_crocodile",
            "lore": "§d灵兽:§f威烈蛟尾兽\n属性：水、火\n融合条件：水威烈熊(主)+火蛟尾鳄(副)\n生命值：250攻击力：8",
        },
        {
            "out": ModEntity.bear_bull,
            "in1": "beast:water_bear_chaos",
            "in2": "beast:earth_bull",
            "lore": "§d灵兽:§f威烈怒犄兽\n属性：水、土\n融合条件：水威烈熊(主)+土怒犄牛(副)\n生命值：270攻击力：8",
        },
        {
            "out": ModEntity.turtle_frog,
            "in1": "beast:dirt_turtle",
            "in2": "beast:gold_frog",
            "lore": "§d灵兽:§f锐壳雷鸣兽\n属性：土、金\n融合条件：土锐壳龟(主)+金雷鸣蛙(副)\n生命值：320攻击力：7",
        },
        {
            "out": ModEntity.frog_bee,
            "in1": "beast:gold_frog",
            "in2": "beast:water_bee",
            "lore": "§d灵兽:§f雷鸣刺皇兽\n属性：金、水\n融合条件：金雷鸣蛙(主)+水刺皇蜂(副)\n生命值：280攻击力：11",
        },
        {
            "out": ModEntity.frog_manis,
            "in1": "beast:gold_frog",
            "in2": "beast:wood_manis",
            "lore": "§d灵兽:§f雷鸣岩鳞兽\n属性：金、木\n融合条件：金雷鸣蛙(主)+木岩鳞鼠(副)\n生命值：330攻击力：9",
        },
        {
            "out": ModEntity.sloth_manis,
            "in1": "beast:fire_sloth",
            "in2": "beast:wood_manis",
            "lore": "§d灵兽:§f睡爪岩鳞兽\n属性：火、木\n融合条件：火睡爪獭(主)+木岩鳞鼠(副)\n生命值：300攻击力：8",
        },
        {
            "out": ModEntity.manis_velociraptor,
            "in1": "beast:wood_manis",
            "in2": "beast:water_velociraptor",
            "lore": "§d灵兽:§f岩鳞速猛兽\n属性：木、水\n融合条件：木岩鳞鼠(主)+水速猛蜥(副)\n生命值：270攻击力：8",
        },
        {
            "out": ModEntity.snake_chomper,
            "in1": "beast:fire_snake",
            "in2": "beast:gold_chomper",
            "lore": "§d灵兽:§f毒牙啃灵兽\n属性：火、金\n融合条件：火毒牙蛇(主)+金啃灵藤(副)\n生命值：350攻击力：9",
        },
        {
            "out": ModEntity.inkfish_mantis,
            "in1": "beast:dirt_inkfish",
            "in2": "beast:fire_mantis",
            "lore": "§d灵兽:§f墨脚巨斧兽\n属性：土、火\n融合条件：土墨脚贼(主)+火巨斧虫(副)\n生命值：300攻击力：8",
        },
        {
            "out": ModEntity.gold_frog,
            "lore": "§a精灵：§f金雷鸣蛙\n属性：金\n生命值：25\n攻击力：6"
        },
        {
            "out": ModEntity.water_bee,
            "lore": "§a精灵：§f水刺皇蜂\n属性：水\n生命值：34\n攻击力：4"
        },
        {
            "out": ModEntity.wood_mouse,
            "lore": "§a精灵：§f木岩鳞鼠\n属性：木\n生命值：30\n攻击力：6"
        },
        {
            "out": ModEntity.earth_chomper,
            "lore": "§a精灵：§f土啃灵藤\n属性：土\n生命值：15\n攻击力：7"
        },
        {
            "out": ModEntity.gold_chomper,
            "lore": "§a精灵：§f金啃灵藤\n属性：金\n生命值：15\n攻击力：7"

        },
        {
            "out": ModEntity.fire_sloth,
            "lore": "§a精灵：§f火睡爪獭\n属性：火\n生命值：40\n攻击力：3"

        },
        {
            "out": ModEntity.earth_bull,
            "lore": "§a精灵：§f土怒犄牛\n属性：土\n生命值：40\n攻击力：5"

        },

    ]
    # 战爪物品
    SkillClawItem = [

    ]
    # 精华物品
    EssentialItem = [
        # version 6.0
        ModItem.essential_gold_frog,
        ModItem.essential_water_bee,
        ModItem.essential_wood_mouse,
        ModItem.essential_earth_chomper,
        ModItem.essential_gold_chomper,
        ModItem.essential_fire_sloth,
        ModItem.essential_earth_bull,

    ]
    # 杂项物品
    MiscItem = [

    ]
    # 原石物品
    StoneItem = [
        # version 6.0

    ]
    # 模组物品
    ModuleItem = []
    # 物品属性配置
    ItemAttrConfig = {
        ModItem.essential_gold_frog: {
            "soul_price": 15
        },
        ModItem.essential_water_bee: {
            "soul_price": 18
        },
        ModItem.essential_wood_mouse: {
            "soul_price": 15
        },
        ModItem.essential_earth_chomper: {
            "soul_price": 5
        },
        ModItem.essential_gold_chomper: {
            "soul_price": 5
        },
        ModItem.essential_fire_sloth: {
            "soul_price": 9
        },
        ModItem.essential_earth_bull: {
            "soul_price": 7
        },
    }
    # 生物属性配置

    MobAttrConfig = {
        ModEntity.gold_frog: {
            "element": ElementType.gold,
            "attributes": {
                GameAttr.Health: 25,
                GameAttr.Attack: 6

            },
            "attack": {"cd": 2.0},
            "capture": {
                "lore": "金雷鸣蛙，腿部很有力量，舌头很长"
            },
            "combine": {
                ModEntity.water_bee: ModEntity.frog_bee,
                ModEntity.wood_mouse: ModEntity.frog_manis,
            }
        },
        ModEntity.water_bee: {
            "element": ElementType.water,
            "attributes": {
                GameAttr.Health: 34,
                GameAttr.Attack: 4

            },
            "attack": {"cd": 2.0},
            "capture": {
                "lore": "水刺皇蜂，死亡或被捕捉后会在原地生成2只蜜蜂"
            },
            "combine": {

            }
        },
        ModEntity.wood_mouse: {
            "element": ElementType.wood,
            "attributes": {
                GameAttr.Health: 30,
                GameAttr.Attack: 6

            },
            "attack": {"cd": 2.0},
            "capture": {
                "lore": "木岩鳞鼠，擅长挖洞，身有鳞甲"
            },
            "combine": {
                "beast:water_velociraptor": ModEntity.manis_velociraptor,
            }
        },
        ModEntity.earth_chomper: {
            "element": ElementType.dirt,
            "attributes": {
                GameAttr.Health: 15,
                GameAttr.Attack: 7

            },
            "attack": {"cd": 2.0},
            "capture": {
                "lore": "土啃灵藤，一种会行动的植物型精灵"
            },
            "combine": {
            }
        },
        ModEntity.gold_chomper: {
            "element": ElementType.gold,
            "attributes": {
                GameAttr.Health: 15,
                GameAttr.Attack: 7

            },
            "attack": {"cd": 2.0},
            "capture": {
                "lore": "金啃灵藤，一种会行动的植物型精灵"
            },
            "combine": {
            }
        },
        ModEntity.fire_sloth: {
            "element": ElementType.fire,
            "attributes": {
                GameAttr.Health: 40,
                GameAttr.Attack: 3

            },
            "attack": {"cd": 2.0},
            "capture": {
                "lore": "火睡爪獭，水性娴熟，不但能快速灵活地游泳，还能通过小圆瓣把鼻孔和耳朵紧闭起来，不动声色地贴身水面之下"
            },
            "combine": {
                ModEntity.wood_mouse: ModEntity.sloth_manis,
            }
        },
        ModEntity.earth_bull: {
            "element": ElementType.dirt,
            "attributes": {
                GameAttr.Health: 40,
                GameAttr.Attack: 5

            },
            "attack": {"cd": 2.0},
            "capture": {
                "lore": "土怒犄牛，双角使其具有极强的杀敌能力"
            },
            "combine": {
            }
        },
        ModEntity.mantis_chomper: {
            "element": ElementType.dirt,
            "attributes": {
                GameAttr.Health: 280,
                GameAttr.Attack: 8
            },
            "attack": {"cd": 1.5, "anim_time": 43},
            "sk1": {"damage": 25, "cd": 6, "anim_time": 66},
            "sk2": {"damage": 30, "cd": 9, "anim_time": 60},
            "element_mob": ["beast:fire_mantis", "beast:earth_chomper"],
            "capture": {
                "lore": "巨斧啃灵兽，啃食的能力很强"
            }
        },
        ModEntity.bear_crocodile: {
            "element": ElementType.fire,
            "attributes": {
                GameAttr.Health: 250,
                GameAttr.Attack: 8
            },
            "attack": {"cd": 1.5, "anim_time": 43},
            "sk1": {"damage": 20, "cd": 6, "anim_time": 66},
            "sk2": {"damage": 5, "cd": 9, "anim_time": 60},
            "element_mob": ["beast:water_bear_chaos", "beast:fire_crocodile"],
            "capture": {
                "lore": "威烈蛟尾兽，有熊一般的身体，运动能力很强"
            }
        },
        ModEntity.bear_bull: {
            "element": ElementType.water,
            "attributes": {
                GameAttr.Health: 270,
                GameAttr.Attack: 8
            },
            "attack": {"cd": 1.5, "anim_time": 43},
            "sk1": {"damage": 20, "cd": 6, "anim_time": 66},
            "sk2": {"damage": 15, "cd": 9, "anim_time": 60},
            "element_mob": ["beast:water_bear_chaos", "beast:earth_bull"],
            "capture": {
                "lore": "威烈怒犄兽， 力量强大，外表凶猛"
            }
        },
        ModEntity.turtle_frog: {
            "element": ElementType.water,
            "attributes": {
                GameAttr.Health: 320,
                GameAttr.Attack: 7
            },
            "attack": {"cd": 1.5, "anim_time": 43},
            "sk1": {"damage": 24, "cd": 6, "anim_time": 66},
            "sk2": {"damage": 24, "cd": 9, "anim_time": 60},
            "element_mob": ["beast:dirt_turtle", "beast:gold_frog"],
            "capture": {
                "lore": "锐壳雷鸣兽，拥有外壳和长舌，可攻可守"
            }
        },
        ModEntity.frog_bee: {
            "element": ElementType.dirt,
            "attributes": {
                GameAttr.Health: 280,
                GameAttr.Attack: 11
            },
            "attack": {"cd": 1.5, "anim_time": 43},
            "sk1": {"damage": 8, "cd": 6, "anim_time": 66},
            "sk2": {"damage": 26, "cd": 9, "anim_time": 60},
            "element_mob": ["beast:gold_frog", "beast:water_bee"],
            "capture": {
                "lore": "雷鸣刺皇兽，擅长远程攻击，可以飞行"
            }
        },
        ModEntity.frog_manis: {
            "element": ElementType.gold,
            "attributes": {
                GameAttr.Health: 330,
                GameAttr.Attack: 9
            },
            "attack": {"cd": 1.5, "anim_time": 43},
            "sk1": {"damage": 20, "cd": 6, "anim_time": 66},
            "sk2": {"damage": 1, "cd": 9, "anim_time": 60},
            "element_mob": ["beast:gold_frog", "beast:wood_manis"],
            "capture": {
                "lore": "雷鸣岩鳞兽，可以通过掘地来自我防御"
            }
        },
        ModEntity.sloth_manis: {
            "element": ElementType.gold,
            "attributes": {
                GameAttr.Health: 300,
                GameAttr.Attack: 8
            },
            "attack": {"cd": 1.5, "anim_time": 43},
            "sk1": {"damage": 18, "cd": 6, "anim_time": 66},
            "sk2": {"damage": 15, "cd": 9, "anim_time": 60},
            "element_mob": ["beast:fire_sloth", "beast:wood_manis"],
            "capture": {
                "lore": "睡爪岩鳞兽，拥有尖锐的双爪"
            }
        },
        ModEntity.manis_velociraptor: {
            "element": ElementType.fire,
            "attributes": {
                GameAttr.Health: 270,
                GameAttr.Attack: 8
            },
            "attack": {"cd": 1.5, "anim_time": 43},
            "sk1": {"damage": 24, "cd": 6, "anim_time": 66},
            "sk2": {"damage": 25, "cd": 9, "anim_time": 60},
            "element_mob": ["beast:wood_manis", "beast:water_velociraptor"],
            "capture": {
                "lore": "岩鳞速猛兽，像名字一样行动灵活而速猛"
            }
        },
        ModEntity.snake_chomper: {
            "element": ElementType.wood,
            "attributes": {
                GameAttr.Health: 350,
                GameAttr.Attack: 10
            },
            "attack": {"cd": 1.5, "anim_time": 43},
            "sk1": {"damage": 25, "cd": 6, "anim_time": 66},
            "sk2": {"damage": 31, "cd": 9, "anim_time": 60},
            "element_mob": ["beast:fire_snake", "beast:gold_chomper"],
            "capture": {
                "lore": "毒牙啃灵兽，极长的身子和巨大的嘴，压迫感很强"
            }
        },
        ModEntity.inkfish_mantis: {
            "element": ElementType.fire,
            "attributes": {
                GameAttr.Health: 300,
                GameAttr.Attack: 8
            },
            "attack": {"cd": 1.5, "anim_time": 43},
            "sk1": {"damage": 26, "cd": 6, "anim_time": 66},
            "sk2": {"damage": 30, "cd": 9, "anim_time": 60},
            "element_mob": ["beast:dirt_inkfish", "beast:fire_mantis"],
            "capture": {
                "lore": "墨脚巨斧兽，拥有很长的触手，可以用来支撑身体"
            }
        },
    }
